function showAppFeeList(json){
	if(json.statusCode==DWZ.statusCode.error){
		navTabAjaxDone(json)
		return;
	}
	var numPerPage=json.numPerPage;
	var currentPage=json.currentPage;
	var totalCount=json.totalCount;
	var pageCount=json.pageCount
	var list=json.list;
	var content=""
	var i;
	if(list.length!=0){
		 for(i=0;i<list.length;i++){
			 var text,value,appKindName='',appName='';
			 if(list[i].isActivate=="1")  text="已启用"
			 else text="未启用"
			 if(list[i].appKindName!=null) appKindName=list[i].appKindName
			 if(list[i].appName!=null) appName=list[i].appName
			 value=list[i].feeRulesId+"#"+list[i].feeRuleId;
			content+="<tr onmouseover='moveoverMouse(this)' onmouseout='moveoutMouse(this)' align='center'><td width='3%'><input name='appChargeDef' onclick='test(this)' value="+list[i].feeRulesId+" type='radio'></td><td width='14%'>"+list[i].feeItemName+
					"</td><td width='10%'>"+list[i].cardpName+"</td><td width='10%'>"+appKindName+"</td><td width='14%'>"+appName+
					"</td><td width='7%'>"+list[i].feeTypeName+"</td><td width='7%'>"+list[i].feeBln.toFixed(2)+"</td><td width='15%'>"+getDate(list[i].validStartDate)+
					"</td><td width='15%'>"+getDate(list[i].validEndDate)+"</td><td width='5%'>"+text+"</td></tr>";
		}
	}else{
		content+="<tr><td colspan='9' align='center' >未查询到数据</td></tr>";
	}
	$("input[name='numPerPage']").val(numPerPage);
	$("input[name='pageNum']").val(currentPage); 
//	$("input[name='pageCount']").val(pageCount);
	$("#totalCountByChargeDef").text("条，共"+totalCount+"条");
	$("#tbodyByChargeDef").html(content)
	
//	var pagination="<a href='#' onclick="+"previous($('#showAppFeeList'),showAppFeeList) id='previous' >上一页  </a><a href='#' onclick="+"next($('#showAppFeeList'),showAppFeeList) id='next'> 下一页</a><span>当前第"+currentPage+"页，共"+pageCount+"页</span>";
//	$("#paginationByChargeDef").html(pagination);
	$("#paginationByChargeDef").addClass("pagination").attr("targetType","navTab").attr("totalCount",totalCount).attr("numPerPage",numPerPage).attr("pageNumShown","10").attr("currentPage",currentPage).attr("rel","tbodyByChargeDef").attr("callback","showAppFeeList");
	$("div.pagination").each(function(){
		var $this = $(this);
		$this.pagination({
			targetType:"navTab",
			rel:"tbodyByChargeDef",
			totalCount:totalCount,
			numPerPage:numPerPage,
			pageNumShown:10,
			currentPage:currentPage,
			callback:showAppFeeList
		});
	});
	var $p = $("#ByAppChargeDef");
	initUI($p);
}

function showAppTypeByAppKindId(sel){
	var appKindId=$(sel).val();
	var cont="<option value=''>请选择</option>"
	if(appKindId==''){
		$("select[name='appType']").html(cont);
		return false;
	}
	$.post("appChargeDef/showAppTypeByAppKindId",{appKindId:appKindId},function(json){
		if(json.statusCode==DWZ.statusCode.error){
			navTabAjaxDone(json)
			return;
		}
		if(json.length==0){
			$("select[name='appType']").html("<option selected='selected' value=''>无应用类型</option>");
		}else{
			for(var i=0;i<json.length;i++){
				cont+="<option value="+json[i].appType+">"+json[i].appName+"</option>"
			}
			$("select[name='appType']").html(cont);
		}
		
	},"json")
}